package com.example.annolog.thread;

public class NormalThread extends AbstractCommonThread {

    private Runnable runnable;

    public NormalThread(Runnable runnable) {
        super(ThreadTypeEnum.NORMAL.getTypeCode());
        this.setRunnable(runnable);
    }

    @Override
    protected void executeRun() {
        runnable.run();
    }

    public Runnable getRunnable() {
        return runnable;
    }

    public void setRunnable(Runnable runnable) {
        this.runnable = runnable;
    }

}
